home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 62 / Quick PC 62.iso / I386 / IIS5_01.CAB / IIS_Expire_JScript.asp < prev    next >
Encoding:
Text File  |  1999-06-03  |  1.1 KB  |  43 lines

  1. <%@ LANGUAGE = JScript     %>
  2.  
  3. <!*************************
  4. This sample is provided for educational purposes only. It is not intended to be 
  5. used in a production environment, has not been tested in a production environment, 
  6. and Microsoft will not provide technical support for it. 
  7. *************************>
  8.  
  9. <%
  10.     //Because the Expiration Information is sent in the HTTP
  11.     //headers, it must be set before any HTML is transmitted.
  12.  
  13.     //Ensure that this page expires within 10 minutes...    
  14.  
  15.     Response.Expires = 10;
  16.     
  17.     //...or before Jan 1, 2001, which ever comes first.
  18.  
  19.     Response.ExpiresAbsolute = "Jan 1, 2001 13:30:15";
  20. %>
  21.  
  22.  
  23. <HTML>
  24.     <HEAD>
  25.         <TITLE>Setting Expiration Information</TITLE>
  26.     </HEAD>
  27.  
  28.     <BODY BGCOLOR="White" TOPMARGIN="10" LEFTMARGIN="10">
  29.  
  30.         <!-- Display header. -->
  31.  
  32.         <FONT SIZE="4" FACE="ARIAL, HELVETICA">
  33.         <B>Setting Expiration Information</B></FONT><BR>
  34.       
  35.         <HR SIZE="1" COLOR="#000000">
  36.  
  37.         <P>This page will expire from your browser's cache in
  38.         10 minutes.  If it is after Jan. 1, 2001 (1:30 PM), then
  39.         the page will expire from the cache immediately.
  40.         
  41.     </BODY>
  42. </HTML>
  43.